<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>#ml_preferences</title>
<hta:application applicationname="#ml_dlg_cnf_header" singleinstance="yes" caption="yes" navigable="yes" innerborder="no" icon="images\speed_hta.ico" />
<link rel="stylesheet" type="text/css" href="dialog.css" />
<script type="text/javascript"><!--
  var ml_object = { yes: "#ml_yes", no: "#ml_no", deactivated: "#ml_deactivated", ole_error: "#ml_ole_error", settings: "#ml_settings" };
-->
</script>
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="dlg_common.js"></script>
<script type="text/javascript" src="preferences.js"></script>
</head>
<body onload="dialog()" style="overflow:auto">
  <div id="menu">
    <img src="images/logo.png" width="220" height="100" alt="" onFocus="this.blur()"  ONDRAGSTART="window.event.returnValue=false"/>
    <ul class="menu">
      <li class="active"><a href="cfospreferences.cfhta">#ml_preferences</a></li>
      <li id="li_prot"><a href="priority.cfhta?protocols" id="l7_tab">#ml_protocols</a></li>
      <li id="li_prog"><a href="priority.cfhta">#ml_programs</a></li>
      <li><a href="adapterinfo.cfhta">#ml_adapter_info</a></li>
      <li><a href="spdbudget.cfhta">#ml_budgets</a></li>
      <li><a href="slot.cfhta">#ml_traffic_analysis</a></li>
    </ul>
  </div>

  <div id="dlg">
    <div id="rwin_exp_dlg">
      <h2>#ml_rwin_expansion</h2>
      <div class="setting">
        <img id="expand_rwin" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
        <p class="explain">#ml_rwin_expansion_help</p>
      </div>
    </div>

    <h2>#ml_traffic_shaping&#160;(<a class="grey hand" onclick="open_url('#ml_ts_options_help')" style="margin: 0px; padding: 0px; text-decoration: underline">#ml_help</a>)</h2>
    <div id="connbox" class="setting" style="height: 11em; overflow: auto">
       <table id="con_list" >
          <tr>
          <td>#ml_def_bandwidth_help</td><td style="padding-left: 12px"><img class="button" src="images/settings.png" onmouseover='this.src="images/settings_a.png";' onmouseout='this.src="images/settings.png";' title="#ml_settings" alt="#ml_settings" onclick="show_ts_settings(-2)"/></td>
          </tr>
          <tr id="cur_con">
          <td>#ml_cur_bandwidth_help</td><td style="padding-left: 12px"><img class="button" src="images/settings.png" onmouseover='this.src="images/settings_a.png";' onmouseout='this.src="images/settings.png";'  title="#ml_settings" alt="#ml_settings" onclick="show_ts_settings(-1)"/></td>
          </tr>
       </table>
    </div>

    <h2>#ml_limit_bandwidth</h2>
    <p class="help">#ml_limit_help</p>
    <div class="setting">
          #ml_rx_limit
        <div class="text_input">
          <input class="text right" id="rx_limit" type="text" size="8" maxlength="8" />
        </div>
        #ml_max = <span id="max_rx"></span> kbyte/s<br/><br/>
        #ml_tx_limit
        <div class="text_input">
          <input class="text right" id="tx_limit" type="text" size="8" maxlength="8" />
        </div>
        #ml_max = <span id="max_tx"></span> kbyte/s<br/><br/>
        <button id="limits" onclick="set_limits()">#ml_apply_limits</button><br/><br/>
    </div>

    <h2>#ml_enable_smartphone_skins&#160;(<a class="grey hand" onclick="open_url('#ml_phone_skins_help')" style="margin: 0px; padding: 0px; text-decoration: underline">#ml_help</a>)</h2>
    <div class="setting">
    		<p><span id="has_server_pwd">#ml_http_access_enabled</span><span id="no_server_pwd">#ml_http_access_disabled</span></p>
        <div class="text_input">
          <input class="text right" id="server_pwd" type="password" size="12" />
        </div>
        <button onclick="set_server_pwd()">#ml_set_server_pwd</button>
    </div>

    <h2>#ml_favor_ping</h2>
    <div class="setting">
      <img id="latency" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
      <p class="explain">#ml_favor_ping_help</p>
    </div>
    <h2>#ml_avoid_loss</h2>
    <div class="setting">
      <img id="avoid_loss" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
      <p class="explain">#ml_avoid_loss_help</p>
    </div>
    <h2>#ml_activate_firewall</h2>
    <div class="setting">
      <img id="firewall" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
      <p class="explain">#ml_activate_firewall_help</p>
    </div>
    <h2>#ml_blocklist</h2>
    <p class="help">#ml_blocklist_help</p>
    <div class="setting">
      <div class="text_input">
         <input class="text" id="blocklist" type="text" size="20" />
      </div>
      <button id="search" onClick="browse_for_file()">#ml_search</button>
      <button id="search" onClick="delete_ip_list()">#ml_reset</button>
    </div>
    <h2>#ml_mtu_opt</h2>
    <div class="setting">
      <img id="handle_mss" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
      <p class="explain" style="margin-bottom: 10px">#ml_mtu_opt_help </p>
    </div>
    <h2>#ml_strict_rtp</h2>
    <div class="setting">
      <img id="strict_rtp_check" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
      <p class="explain">#ml_strict_rtp_help</p>
    </div><br />
  </div>

  <div id="con_settings" class="settings_frame" style="display:none">
    <div class="settings_box shadow">
       <h1>#ml_settings</h1>
       <div class="setting">
         <img id="allow_ts" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
         <p class="explain"><b>#ml_allow_traffic_shaping</b></p>
       </div>
       <div class="setting info">
         <img id="reg_id" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
         <p class="explain"><b>#ml_regid</b> - #ml_regid_help</p>
       </div>
       <div class="setting info">
         <img id="net_talk" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
         <p class="explain"><b>#ml_net_talk</b> - #ml_net_talk_help</p>
       </div>
       <div class="setting info">
         <img id="vari_fixed" class="checkbox" src="images/checkbox_off.png" width="11" height="11" border="0" style="float: left; margin-right: 5px" />
         <p class="explain"><b>#ml_vari_fixed</b> - #ml_vari_fixed_help</p>
       </div>
       <div class="setting">
          #ml_budget
          <select id="budget" size="1">
            <option>---</option>
            <option>#ml_budget 1</option>
            <option>#ml_budget 2</option>
            <option>#ml_budget 3</option>
            <option>#ml_budget 4</option>
            <option>#ml_budget 5</option>
            <option>#ml_budget 6</option>
            <option>#ml_budget 7</option>
            <option>#ml_budget 8</option>
            <option>#ml_budget 9</option>
            <option>#ml_budget 10</option>
          </select>
       </div>
       <div class="setting">
          #ml_connection_medium
          <select id="medium" size="1">
            <option value="0">Adaptive</option>
            <option value="1">DSL (PPPoE)</option>
            <option value="2">DSL (PPPoA/VCmux)</option>
            <option value="6">DSL (PPPoA/LLC)</option>
            <option value="3">DSL (PPTP)</option>
            <option value="4">Cable</option>
            <option value="11">2G/3G Mobile (UMTS, WCDMA, CDMA2000, etc.)</option>
            <option value="5">ISDN</option>
            <option value="7">IP over AAL5</option>
            <option value="8">RFC 1483/2684 bridged</option>
            <option value="9">Frame Count</option>
            <option value="10">Mixed Raw IP/Frame Count</option>
          </select>
       </div>
       <div class="buttons">
         <button onclick="change_ts_settings()">#ml_ok</button>
         <button onclick="$('#con_settings').hide()">#ml_console_cancel</button>
       </div>
    </div>
    <div class="help_box" id="help" style="display: none">
      <div style="margin-bottom: 8px"><strong>#ml_regid</strong>: #ml_regid_help_long</div>
      <div style="margin-bottom: 8px"><strong>#ml_net_talk</strong>: #ml_net_talk_help_long</div>
      <div style="margin-bottom: 8px"><strong>#ml_vari_fixed</strong>: #ml_vari_fixed_help_long</div>
    </div>
  </div>

</body>
</html>
